import { createSSRApp } from 'vue'
import App from './App.vue'
import store from './store'
import { permission } from './utils/permission'

export function createApp() {
    const app = createSSRApp(App)
    app.use(store)
    app.directive('permission', permission)
    return {
        app
    }
}